4c894e677a43c171fff486703ea79257cecd23c6,impl/src/main/java/com/sun/faces/application/ApplicationImpl.java,ApplicationImpl,createValidator,#String#,1304

Before Change


            }
        }

        returnVal = (Validator) newThing(validatorId, validatorMap);
        if (returnVal == null) {
            Object[] params = { validatorId };
            if (LOGGER.isLoggable(Level.SEVERE)) {
                LOGGER.log(Level.SEVERE, "jsf.cannot_instantiate_validator_error", params);
            }
            throw new FacesException(MessageUtils.getExceptionMessageString(MessageUtils.NAMED_OBJECT_NOT_FOUND_ERROR_MESSAGE_ID, params));
        }
        if (LOGGER.isLoggable(Level.FINE)) {
            LOGGER.fine(MessageFormat.format("created validator of type ''{0}''", validatorId));

After Change


            return validator;
        }

        validator = newThing(validatorId, validatorMap);
        
        notNullNamedObject(validator, validatorId, "jsf.cannot_instantiate_validator_error");
        
        if (LOGGER.isLoggable(FINE)) {
            LOGGER.fine(MessageFormat.format("created validator of type ''{0}''", validatorId));